<template>
  <div>
    <div>

    <el-table border ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"  @selection-change="handleSelectionChange">  

    <el-table-column type="selection" width="80"></el-table-column>

    <el-table-column prop="shenqingid" label="编号" width="220">
      <template slot-scope="{row}">
          <span>{{ row.shenqingid }}</span>
      </template>
    </el-table-column>

    <el-table-column prop="myname" label="审批节点" width="220">
      <template slot-scope="{row}">
          <span>{{ row.myname }}</span>
      </template>
    </el-table-column>

    <el-table-column prop="zhuoping" label="作品名称" width="220">
      <template slot-scope="{row}">
          <span>{{ row.zhuoping }}</span>
      </template>
    </el-table-column>

    <el-table-column  prop="starttime" label="创建时间" width="220">
      <template slot-scope="scope">{{ scope.row.starttime }}</template>
    </el-table-column>

    <el-table-column  prop="endtime" label="结束时间" width="220">
      <template slot-scope="scope">{{ scope.row.endtime }}</template>
    </el-table-column>
  </el-table>
  <br>
    </div>
  </div>
</template>
<script>
import { queryactinst } from "@/api/wodeyiban"; 

export default {
    data() {
        return {
        
        // multipleSelection: [],
        //   currentPage4: 4,
        //   value1:  "",
        //   formLabelWidth: '100px',
        //   dialogFormVisible: false,
        //   fabushijian: new Date(),
          tableData: [], //列表显示
          //   listQuery: {
          //   starttime: "", //创建时间
          //   shenqingid:"",
          //   endtime:"", //结束时间
          //   myname:"", //标题
            
          // }
        }
        },
    created() {
    this.getList();
  },
  methods: {
    getList() {
      this.listLoading = false
      let username=sessionStorage.getItem("username");
      console.log("当前登录人账号："+username);
      queryactinst(username).then(response => {
        console.log("当前登录人账号："+username);
        this.tableData = response.data
        console.log(response.data);
        // Just to simulate the time of the request
        setTimeout(() => {
          this.listLoading = false
        }, 1.5 * 1000)
      })
    },
}
  
}
                
</script>